Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Data Studio]add getJobInstanceByTaskName api #3822

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

zhuxt2015
Copy link
Contributor

@zhuxt2015 zhuxt2015 commented Sep 21, 2024

Purpose of the pull request

The job name is unique globally that can use to query the job instance, but the job id is not easy to remember

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

@@ -174,6 +174,19 @@ public Result<JobInstance> getJobInstanceByTaskId(@RequestParam Integer id) {
return Result.succeed(jobInstanceService.getJobInstanceByTaskId(id));
}

@GetMapping("/getJobInstanceByTaskName")
@ApiOperation("Get Job Instance By Task Id")
@ApiImplicitParam(
Copy link
Contributor

@Zzm0809 Zzm0809 Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please modify the parameter description below correctly

select *
from dinky_job_instance
where name = #{taskName}
order by id desc limit 1
Copy link
Contributor

@Zzm0809 Zzm0809 Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is your need to get the latest task execution instance? Or do you just need to get any one?

@Zzm0809
Copy link
Contributor

Zzm0809 commented Sep 23, 2024

Thank you for your contribution. Please describe the corresponding scenarios for implementing this function. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants